data = {
    "success": True,
    "code": "success",
    "message": "Upload success.",
    "data": {
        "file_id": 0,
        "width": 951,
        "height": 528,
        "filename": "screenshot.jpg",
        "storename": "aqJwW2yD7BilYhf.png",
        "size": 35028,
        "path": "/2020/05/15/aqJwW2yD7BilYhf.png",
        "hash": "k32Hq8Nu5pWjGYJDPhVQfSaKcZ",
        "url": "https://i.loli.net/2020/05/15/aqJwW2yD7BilYhf.png",
        "delete": "https://sm.ms/delete/k32Hq8Nu5pWjGYJDPhVQfSaKcZ",
        "page": "https://sm.ms/image/aqJwW2yD7BilYhf"
    },
    "RequestId": "9B8FD42E-2AB9-4316-B907-9867AE3769F4"
}

try:
    url1 = data['data']['url']
except:
    url2 = data['images']
    print(f'url2：{url2}')
else:
    print(f'url1：{url1}')
